package cn.zktr.Personnel.model.pojos;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the per_sly_yxz database table.
 * 
 */
@Entity
@Table(name="per_sly_yxz")
@NamedQuery(name="PerSlyYxz.findAll", query="SELECT p FROM PerSlyYxz p")
public class PerSlyYxz implements Serializable {
	@Override
	public String toString() {
		return "PerSlyYxz [yxzid=" + yxzid + ", perPmsEmp=" + perPmsEmp + ", perSlySet=" + perSlySet + "]";
	}

	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="PER_SLY_YXZ_YXZID_GENERATOR", sequenceName="SEQ1",allocationSize=1,initialValue=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="PER_SLY_YXZ_YXZID_GENERATOR")
	private int yxzid;

	//bi-directional many-to-one association to PerPmsEmp
	@ManyToOne
	@JoinColumn(name="EMPID")
	private PerPmsEmp perPmsEmp;

	//bi-directional many-to-one association to PerSlySet
	@ManyToOne
	@JoinColumn(name="SETID")
	private PerSlySet perSlySet;

	public PerSlyYxz() {
	}

	public int getYxzid() {
		return this.yxzid;
	}

	public void setYxzid(int yxzid) {
		this.yxzid = yxzid;
	}

	public PerPmsEmp getPerPmsEmp() {
		return this.perPmsEmp;
	}

	public void setPerPmsEmp(PerPmsEmp perPmsEmp) {
		this.perPmsEmp = perPmsEmp;
	}

	public PerSlySet getPerSlySet() {
		return this.perSlySet;
	}

	public void setPerSlySet(PerSlySet perSlySet) {
		this.perSlySet = perSlySet;
	}

}